package com.baimuzhi.live.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName : LiveConfigList
 * @Description :
 * @Author : 肖叶茂
 * @Date: 2023/1/18  15:55
 */

@Component
@Data
public class LiveConfigList {

    //需要读取的配置信息

    @Value("#{'${baimuzhi.live.server.id}'.split(',')}")
    private String[] ids;

    @Value("#{'${baimuzhi.live.server.url}'.split(',')}")
    private String[] urls;

    @Value("#{'${baimuzhi.live.server.http}'.split(',')}")
    private String[] https;

    @Value("#{'${baimuzhi.live.server.rtmp}'.split(',')}")

    private String[] rtmps;



    @Value("#{'${baimuzhi.live.server.flv}'.split(',')}")

    private String[] flvs;


    @Value("#{'${baimuzhi.live.server.hls}'.split(',')}")
    private String[] hlss;

}
